/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package koneksi;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author SONY
 */
public class CreatePegawai {
    public static void main(String[] args) {
        try {
            Connection con = koneksi.CekKoneksi.open();
            Statement stat = con.createStatement();
            String  in = "insert into PEGAWAI(USERNAME,PASSWORD)"
                    + "values ('Manajer','manajer')";
            String  in1 = "insert into PEGAWAI(USERNAME,PASSWORD)"
                    + "values ('Admin','admin')";
            stat.executeUpdate(in);
            stat.executeUpdate(in1);
        } catch (SQLException ex) {
            Logger.getLogger(CreatePegawai.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
